﻿
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layuiAdmin std - 通用后台管理模板系统（iframe版）</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="~/Admins/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="~/Admins/layui/css/admin.css" media="all">
    <style>
        * {
            padding: 0;
            margin: 0;
        }
    </style>
</head>
<body>

    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">
                        <div class="layui-inline">
                            <input class="layui-input " name="id" id="search" placeholder="账号/手机号码/昵称/姓名" style="width:200px">
                        </div>
                        <button class="layui-btn" data-type="reload">查询</button>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="test"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="~/Admins/layui/layui.js"></script>
    <script>
        layui.config({
            base: '/Admins/layui/config.js' //静态资源所在路径
        }).use(['table'], function () {
            var table = layui.table;
            table.render({
                elem: '#test',
                height: 'full-95',
                url: '/Admins/SysUser/GetGridJson',
                cellMinWidth: 80,
                limit: 30,
                page: true,
                size: 'sm',
                loading:true,
                cols: [[
                    { type: 'numbers ', title: "序号", width: 45, templet: function (d) { return d.LAY_TABLE_INDEX + 1; } },
                    { type: 'checkbox' },
                    { field: 'ID', title: 'ID', sort: true },
                    { field: 'Account', title: '用户名' },
                    { field: 'NickName', title: '性别', sort: true },
                    { field: 'RealName', title: '城市' },
                    { field: 'sign', title: '签名', minWidth: 100 },     //minWidth：局部定义当前单元格的最小宽度，layui 2.2.1 新增
                    { field: 'score', title: '评分', sort: true },
                    { field: 'classify', title: '职业' },
                    { field: 'CreateDt', title: '财富', sort: true }
                ]]
            });
        });
    </script>

</body>
</html>